package com.zhaohang.cn.weigit;


import android.content.Context;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.zhaohang.cn.mybasicactivity.R;


/**
 * 作者: 赵航
 * 创建时间: 2018/8/14 10:06
 * 描述:
 */
public class ZhaoHangButton extends LinearLayout {

    private TextView mTextView;
    private LinearLayout mLinearLayout;

    public TextView getTextView() {
        return mTextView;
    }
    public LinearLayout getLinearLayout() {
        return mLinearLayout;
    }
    public ZhaoHangButton(Context context) {
        this(context,null);
    }
    public ZhaoHangButton(Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
        initView(context);
    }

    private void initView(Context context) {

        View myView = View.inflate(context, R.layout.buttonview, this);
        mTextView = (TextView) myView.findViewById(R.id.buttiontext);
        mLinearLayout = (LinearLayout) myView.findViewById(R.id.light_button);


    }
}
